package net.kodra.supereasy.authentication.server;

import java.io.Serializable;
import java.util.logging.Logger;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.google.appengine.api.datastore.Key;

@Entity
@Table(name = "authenticated_users")
public class AuthenticatedUser implements Serializable
{

  private static final Logger LOG = Logger.getLogger(AuthenticatedUser.class.getName());

  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  private Key key;

  String email;
  String authDomain;
  String userId;
  String federatedIdentity;
  String nickname;
  boolean adminFlag;

  public void setKey(Key key)
  {
    this.key = key;
  }

  public Key getKey()
  {
    return key;
  }

  public String getEmail()
  {
    return email;
  }

  public void setEmail(String email)
  {
    this.email = email;
  }

  public String getAuthDomain()
  {
    return authDomain;
  }

  public void setAuthDomain(String authDomain)
  {
    this.authDomain = authDomain;
  }

  public String getUserId()
  {
    return userId;
  }

  public void setUserId(String userId)
  {
    this.userId = userId;
  }

  public String getFederatedIdentity()
  {
    return federatedIdentity;
  }

  public void setFederatedIdentity(String federatedIdentity)
  {
    this.federatedIdentity = federatedIdentity;
  }

  public String getNickname()
  {
    return nickname;
  }

  public void setNickname(String nickname)
  {
    this.nickname = nickname;
  }

  public boolean getAdminFlag()
  {
    return adminFlag;
  }

  public void setAdminFlag(boolean adminFlag)
  {
    this.adminFlag = adminFlag;
  }

}
